# -*- coding: utf-8 -*-

from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from server import app
from user import invalidate_all_sessions  # 导入失效会话函数

# 程序启动时失效所有会话
invalidate_all_sessions()

http_server = HTTPServer(WSGIContainer(app))
http_server.listen(8008)
IOLoop.instance().start()
